# sligthly lower priority than everything else since specialized versions
# should overwrite. The user needs to adjust her priority in her snippets to
# ~-55 so that other filetypes will still overwrite.
priority -40

# overriding perl snippet for better formatting; 
# Conditional if..else
snippet ife
if (${1:1}) {
	${2}
} else {
	# ${3:else body} ${0}
} # end of if-else on condition $1 $0
endsnippet

# Conditional if..elsif..else
snippet ifee
if ( ${1:1} ) {
	${2};
} elsif ( ${3:0} ) {
	# ${4: elsif...}
} else {
	# ${5:else body} ${0};
} # end of if-elsif-else on condition $1 $0
endsnippet

snippet sub "Function (sub)"
sub ${1:function_name} 
{
	my ($${2:var1}) = @_;
	#${3:body...}
} # end_of func $1 $0
endsnippet

snippet pr "print template" w
printf "-i-%8s %8s\n", "${1:var1}", "${2:var2}",  ;$0
endsnippet


snippet pf "print filename and linenumber" w
print "### {"; print  __FILE__ ; print  "}-{" ; print __LINE__ ; print "}, $${1:var1}"."\n"; $0
endsnippet
snippet pfp "filename and linenumber and ddp" w
print "### {"; print  __FILE__ ; print  "}-{" ; print __LINE__ ; print "}, "."\n"; 
p $${1:var1} ; $0
endsnippet

